package com.simtop.service;

import com.simtop.pojo.newrequire.RobotStepScore;
import com.simtop.pojo.newrequire.RobotStepScoreVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lvyongwei
 */
public interface RobotStepScoreService {

    /**
     * 提交实验报告
     * @param robotStepScore
     * @return
     */
    public boolean insertScore(RobotStepScore robotStepScore);

    /**
     * 查询所有实验报告
     * @param roleId
     * @param userId
     * @return
     */
    public List<RobotStepScoreVo> getAllRobotStepScore(@Param("roleId") Integer roleId,@Param("userId") Integer userId);

    /**
     * 教师评价和心得体会
     * @param commitScore
     * @param evaluation
     * @param scoreId
     * @return
     */
    public boolean updateRobotStepScore(@Param("scoreId") Long scoreId, @Param("commitScore") Integer commitScore, @Param("evaluation") String evaluation);

    /**
     * 导出实验成绩
     * @return
     */
    public List<RobotStepScoreVo> exportScore();

    /**
     * 删除实验成绩
     * @param id
     * @return
     */
    public boolean deleteScore(Long id);
}
